package com.legendshop.openportal.sdk.client.http;

import com.legendshop.openportal.sdk.client.http.analyzer.ErrorResponseAnalyzer;
import com.legendshop.openportal.sdk.client.http.analyzer.JsonResponseAnalyzer;

import java.util.Arrays;
import java.util.List;

/**
 * @author jzh
 * @version 1.0.0
 * @title HttpResponseAnalyzerSupport
 * @date 2024/6/18 18:07
 * @description：
 */
public class HttpResponseAnalyzerSupport {

    private static final List<HttpResponseAnalyzer> ANALYZER_CHAIN = Arrays.asList(ErrorResponseAnalyzer.getInstance(), JsonResponseAnalyzer.getInstance());

    /**
     * 获取不带result的解析链
     * @return
     */
    public static List<HttpResponseAnalyzer> getAnalyzerChain() {
        return ANALYZER_CHAIN;
    }
}
